@servers(['web' => 'root@award.chhca.org.cn'])

@task('deploy', ['on' => 'web'])
cd ~/www/award2021.chhca.org.cn
git pull
php artisan cache:clear
php artisan config:cache
@endtask

@task('deploy-ci', ['on' => 'web'])
cd ~/www/ci.award2021.chhca.org.cn
git pull
php artisan cache:clear
php artisan config:cache
@endtask


@task('composer', ['on' => 'web', 'confirm' => true])
cd ~/www/award2021.chhca.org.cn
composer install
@endtask

@task('composer-ci', ['on' => 'web', 'confirm' => true])
cd ~/www/ci.award2021.chhca.org.cn
composer install
@endtask
